import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/exercise_plan_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/exercise_plan_entity.g.dart';

/// 应急演练实体
@JsonSerializable()
class ExercisePlanEntity {

	ExercisePlanEntity();

	factory ExercisePlanEntity.fromJson(Map<String, dynamic> json) => $ExercisePlanEntityFromJson(json);
	late String accidentId = '';
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String deleted = '';
	late String emergencyId = '';
	late String emergencyIdName = '';
	late String exerciseEstimate = '';
	late String exercisePlanAddress = '';
	late String exercisePlanClass = '';
	late String exercisePlanClassName = '';
	late String exercisePlanLevel = '';
	late String exercisePlanLevelName = '';
	late String exercisePlanName = '';
	late String exercisePlanProgramme = '';
	late String exercisePlanScript = '';
	late String exercisePlanType = '';
	late String exercisePlanTypeName = '';
	late String exerciseProcess = '';
	late String existingProblems = '';
	late String expectedCompletionTime = '';
	late String id = '';
	late String improvementMeasures = '';
	late String liverId = '';
	late String otherFile = '';
	late String planEndTime = '';
	late String planStartTime = '';
  //1-待发起(发起审批) 2-待审批(审批) 3-审批中（审批） 4-通过（待发布） 5-已驳回（发起审批）
  //6-待发布（发布） 7-待开始（开始） 8-进行中（结束） 9-已结束（废止） 10-已废止")
	late int toExamineStatus = 0;
	late String preparedBy = '';
	late String preparedDate = '';
	late String processEncoding = '';
	late String purposeRequirement = '';
	late String reportUrl = '';
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';
	late String exerciseScenario = '';

	Map<String, dynamic> toJson() => $ExercisePlanEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
